package com.bamboo.ossservice.service.impl;

import com.bamboo.ossservice.config.OssUtil;
import com.bamboo.ossservice.service.OssService;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;


/**
 * @author jack.wu
 * @version 1.0
 * @date 2020-07-04
 */
@Service
public class OssServiceImpl implements OssService {



    @Override
    public String uploadFileAvatar(MultipartFile file) {
        String folderPath = "teacher/";
        return OssUtil.uploadFile(file, folderPath);
    }
}
